from django.db import models

# Create your models here.
from django.db import models

class ImageSave(models.Model):
    name = models.CharField(max_length=255)
    image = models.ImageField(upload_to='annotated_images/')#自动创建和存储在你指定的媒体文件目录中
    created_at = models.DateTimeField(auto_now_add=True)
    class Meta:
        managed = True
        db_table = "picture_save"

    def __str__(self):
        return self.name
